package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 学历等级、技术等级、职业资格等级
 * </p>
 *
 * @author jondai
 * @since 2018-01-03
 */
@TableName("quality_grade_rule")
public class QualityGradeRule extends Model<QualityGradeRule> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.UUID)
	private String id;
    /**
     * 等级
     */
	private String grade;

	/**
	 * 等级编码
	 */
	@TableField("grade_code")
	private String gradeCode;
    /**
     * 积分
     */
	private Double integral;
    /**
     * 等级类型：学历、技术资格、职业资格
     */
	@TableField("grade_type")
	private String gradeType;

	public static final String gradeTypeName = "grade_type";
	public static final String gradeCodeName = "grade_code";


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getGradeCode() {
		return gradeCode;
	}

	public void setGradeCode(String gradeCode) {
		this.gradeCode = gradeCode;
	}

	public static String getGradeTypeName() {
		return gradeTypeName;
	}

	public Double getIntegral() {
		return integral;
	}

	public void setIntegral(Double integral) {
		this.integral = integral;
	}

	public String getGradeType() {
		return gradeType;
	}

	public void setGradeType(String gradeType) {
		this.gradeType = gradeType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "QualityGradeRule{" +
			"id=" + id +
			", grade=" + grade +
			", integral=" + integral +
			", gradeType=" + gradeType +
			"}";
	}
}
